﻿using AuthTemplate.DTO.Relevance;
using AuthTemplate.Entity;
using AutoMapper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AuthTemplate.Infrastructure.AutoMapper.Profiles
{
    public class RelevanceProfile: Profile
    {
        public RelevanceProfile()
        {
            CreateMap<RelevanceDto, Relevance>()
               .ReverseMap();      //ReverseMap双向映射
            CreateMap<AddRelevanceInput, Relevance>()
               .ReverseMap();      //ReverseMap双向映射
            CreateMap<EditRelevanceInput, Relevance>()
               .ReverseMap();      //ReverseMap双向映射
        }
    }
}
